package demo.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="users")
public class UserInfo extends DateTimeFiled{

	@Id
	@Column(length=32,nullable=false)
	private String uuid;
	
	@Column(length=32,nullable=false,unique=true)
	private String username ;
	
	@Column(length=32,nullable=false)
	private String password;
	
	@Column(length=255)
	private String desc;
	
	@Column
	private int status;

	public UserInfo() {
	}
	
	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}
